#ifndef MENUBAR_H
#define MENUBAR_H

#include <QMenuBar>

class FileMenuList;
class EditMenuList;
class ImageMenuList;
class ColorsMenuList;
class FiltersMenuList;
class HelpMenuList;

class MenuBar : public QMenuBar
{
    Q_OBJECT

public:
    MenuBar(QWidget *parent = nullptr);
    virtual ~MenuBar();
private:
    virtual void changeEvent(QEvent *event);
    void initTrans();

private:
    void initMenuBar();
    void addFileMenuList();
    void addEditMenuList();
    void addImageMenuList();
    void addColorsMenuList();
    void addFiltersMenuList();
    void addHelpMenuList();

signals:
    void closeMainFrame();
    void openImageSignal(const QString& strImageName);

private:
    FileMenuList    *m_pFileMenuList;
    EditMenuList    *m_pEditMenuList;
    ImageMenuList   *m_pImageMenuList;
    ColorsMenuList  *m_pColorsMenuList;
    FiltersMenuList *m_pFiltersMenuList;
    HelpMenuList    *m_pHelpMenuList;

};


#endif // MENUBAR_H
